<?php

namespace app\models;

use Yii;

/**
 * This is the model class for table "plan".
 *
 * @property int $id
 * @property int $eventId
 * @property string $planTime
 * @property int $index
 * @property string $thing
 * @property int $ctime
 */
class Plan extends \yii\db\ActiveRecord
{
    /**
     * {@inheritdoc}
     */
    public static function tableName()
    {
        return 'plan';
    }

    /**
     * {@inheritdoc}
     */
    public function rules()
    {
        return [
            [['eventId', 'planTime', 'index', 'ctime'], 'required'],
            [['eventId', 'index', 'ctime'], 'integer'],
            [['planTime'], 'safe'],
            [['thing'], 'string', 'max' => 255],
        ];
    }

    /**
     * {@inheritdoc}
     */
    public function attributeLabels()
    {
        return [
            'id' => 'ID',
            'eventId' => 'Event ID',
            'planTime' => 'Plan Time',
            'index' => 'Index',
            'thing' => 'Thing',
            'ctime' => 'Ctime',
        ];
    }
}
